package part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.qiniuyun.product;

import part03_工厂模式.demo01_抽象工厂之接入多方云服务器案例.factory.product.OssVideo;

/**
 * @ClassName: AliyunOssImage
 * @Author: AllenSun
 * @Date: 2023/2/12 下午1:43
 */
public class QiniuyunOssVideo implements OssVideo {
    private byte[] bytes;

    public QiniuyunOssVideo(byte[] bytes, String watermark) {
        this.bytes = bytes;
        System.out.println("【七牛云】视频已上传至阿里云南OSS");
        System.out.println("【七牛云】720p转码成功，码率：5000K");
        System.out.println("【阿里云】1080p转码成功，码率：7000K");
    }

    @Override
    public String get720p() {
        return "返回七牛云720p视频";
    }

    @Override
    public String get1080p() {
        return "返回七牛云1080p视频";
    }
}
